import logging
logging.basicConfig(level=logging.DEBUG)

from game.player import Player
from game.games.blackwhite import BlackWhiteChess
BlackWhiteChess(True)
BlackWhiteChess(True)

p1 = Player()
p2 = Player()

p1.recv({u'action': u'player_enter_room', u'data': {u'type': u'blackwhite', u'room': u's0001'}})
p2.recv({u'action': u'player_enter_room', u'data': {u'type': u'blackwhite', u'room': u's0001'}})
p1.recv({u'action': u'state_ready'})
p2.recv({u'action': u'state_ready'})
p1.recv({u'action': u'blackwhite_move', u'data': {u'x': 4, u'y': 2}})
p2.recv({u'action': u'blackwhite_move', u'data': {u'x': 5, u'y': 2}})
p1.recv({u'action': u'blackwhite_move', u'data': {u'x': 5, u'y': 3}})